package cn.elegent.tx.feign;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * AuthAdapterConfig
 * @author: 黑马刘皇叔
 * @describe:
 * @date: 2023/1/1 22:39
 **/
@Configuration
public class ACTXAdapterConfig implements WebMvcConfigurer {

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        InterceptorRegistration registration = registry.addInterceptor(new ACTXInterceptor());
        registration.addPathPatterns("/**");
    }
}